package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysExpertSelectMapper;
import com.ruoyi.system.domain.SysExpertSelect;
import com.ruoyi.system.service.ISysExpertSelectService;

/**
 * 专家抽取Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class SysExpertSelectServiceImpl implements ISysExpertSelectService 
{
    @Autowired
    private SysExpertSelectMapper sysExpertSelectMapper;

    /**
     * 查询专家抽取
     * 
     * @param id 专家抽取主键
     * @return 专家抽取
     */
    @Override
    public SysExpertSelect selectSysExpertSelectById(Long id)
    {
        return sysExpertSelectMapper.selectSysExpertSelectById(id);
    }

    /**
     * 查询专家抽取列表
     * 
     * @param sysExpertSelect 专家抽取
     * @return 专家抽取
     */
    @Override
    public List<SysExpertSelect> selectSysExpertSelectList(SysExpertSelect sysExpertSelect)
    {
        return sysExpertSelectMapper.selectSysExpertSelectList(sysExpertSelect);
    }

    /**
     * 新增专家抽取
     * 
     * @param sysExpertSelect 专家抽取
     * @return 结果
     */
    @Override
    public int insertSysExpertSelect(SysExpertSelect sysExpertSelect)
    {
        sysExpertSelect.setCreateTime(DateUtils.getNowDate());
        return sysExpertSelectMapper.insertSysExpertSelect(sysExpertSelect);
    }

    /**
     * 修改专家抽取
     * 
     * @param sysExpertSelect 专家抽取
     * @return 结果
     */
    @Override
    public int updateSysExpertSelect(SysExpertSelect sysExpertSelect)
    {
        sysExpertSelect.setUpdateTime(DateUtils.getNowDate());
        return sysExpertSelectMapper.updateSysExpertSelect(sysExpertSelect);
    }

    /**
     * 批量删除专家抽取
     * 
     * @param ids 需要删除的专家抽取主键
     * @return 结果
     */
    @Override
    public int deleteSysExpertSelectByIds(Long[] ids)
    {
        return sysExpertSelectMapper.deleteSysExpertSelectByIds(ids);
    }

    /**
     * 删除专家抽取信息
     * 
     * @param id 专家抽取主键
     * @return 结果
     */
    @Override
    public int deleteSysExpertSelectById(Long id)
    {
        return sysExpertSelectMapper.deleteSysExpertSelectById(id);
    }
}
